package com.java.goods.api;

import com.java.common.vo.R;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author jiangli
 * @since 2019/12/15 13:00
 */
public interface GoodsApi {
	/**
	 * 首页展示商品
	 */
	@RequestMapping("/item/getIndexItem")
	R getIndexItem();

	/**
	 * 查询商品
	 */
	@RequestMapping("/item/geItem")
	R geItem(@RequestParam("id") Long id);

	/**
	 * 查询商品详情
	 */
	@RequestMapping("/item/getItemDesc")
	R getItemDesc(@RequestParam("id") Long id);
}
